package com.example.practice2023.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class Good {

  private Integer goodId;
  private String goodTitle;
  private String goodCode;
  private String goodType;
  private String goodPic;
  private Integer goodStatus;
  private String goodStore;
  private double goodPrice;

  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp goodCreateTime;
  private Timestamp goodUptime;


  public Integer getGoodId() {
    return goodId;
  }

  public void setGoodId(Integer goodId) {
    this.goodId = goodId;
  }


  public String getGoodTitle() {
    return goodTitle;
  }

  public void setGoodTitle(String goodTitle) {
    this.goodTitle = goodTitle;
  }


  public String getGoodCode() {
    return goodCode;
  }

  public void setGoodCode(String goodCode) {
    this.goodCode = goodCode;
  }


  public String getGoodType() {
    return goodType;
  }

  public void setGoodType(String goodType) {
    this.goodType = goodType;
  }


  public String getGoodPic() {
    return goodPic;
  }

  public void setGoodPic(String goodPic) {
    this.goodPic = goodPic;
  }


  public Integer getGoodStatus() {
    return goodStatus;
  }

  public void setGoodStatus(Integer goodStatus) {
    this.goodStatus = goodStatus;
  }


  public String getGoodStore() {
    return goodStore;
  }

  public void setGoodStore(String goodStore) {
    this.goodStore = goodStore;
  }


  public double getGoodPrice() {
    return goodPrice;
  }

  public void setGoodPrice(double goodPrice) {
    this.goodPrice = goodPrice;
  }


  public Timestamp getGoodCreateTime() {
    return goodCreateTime;
  }

  public void setGoodCreateTime(Timestamp goodCreateTime) {
    this.goodCreateTime = goodCreateTime;
  }


  public Timestamp getGoodUptime() {
    return goodUptime;
  }

  public void setGoodUptime(Timestamp goodUptime) {
    this.goodUptime = goodUptime;
  }

}
